<?php
	namespace Admin\Controller;
	use Think\Controller;
	class GroupController extends AuthController{

		/**
		 * 社团管理
		 * @return [type] [description]
		 */
		public function index(){
			// $groupinfo=M("create_group")->select();
			// $this->assign('groupinfo',$groupinfo);
			$groupinfo = D('Group')->relation(true)->select();
			$this->assign('groupinfo',$groupinfo);
			// echo M()->getLastSql();die;
			$this->display();
		}

		/**
		 * 获得社团成员数据
		 * @return [type] [description]
		 */
		public function getMember(){
			//获得社团id
			$id=I('id',0,'intval');
			$where['group_id']=$id;
			$memberinfo=M('member')->where($where)->select();
			$this->assign('memberinfo',$memberinfo);
			$this->display();
		}

	}









?>